<template>
	<view class="container">
		<!-- :cover="res.ImageURL" -->
		<uni-card :cover="pic">
			<uni-collapse>
				<uni-collapse-item title="用户名" :open="true" >
					<uni-tag  type="primary" :text="info.username" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="UUID" :open="true" >
					<uni-tag  type="primary" :text="info.uuid" :circle="true"></uni-tag>
				</uni-collapse-item>
				<uni-collapse-item title="邮箱" :open="true" >
					<uni-tag  type="primary" :text="info.email" :circle="true"></uni-tag>
				</uni-collapse-item>
			</uni-collapse>
		</uni-card>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				info:{},
				pic:'https://img0.baidu.com/it/u=1380224700,3914084029&fm=253&fmt=auto&app=120&f=PNG?w=228&h=149'
			}
		},
		onLoad() {
			uni.getStorage({
				key:'userInfo',
				success:(res)=>{
					this.info = res.data
				}
			})
		}
	}
</script>

<style>
</style>